package com.sanyang.pda.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sanyang.pda.bean.StockBean;
import com.wangshen.projectbase.R;


import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;


public class StockListAdapter extends BaseQuickAdapter<StockBean, BaseViewHolder> {
    public StockListAdapter(int layoutResId, @Nullable List<StockBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, StockBean stockBean) {
        baseViewHolder.setText(R.id.tv_articleName,stockBean.getArticleName());
        baseViewHolder.setText(R.id.tv_storagebinId,stockBean.getStoragebinId());
        baseViewHolder.setText(R.id.tv_sequenceNo,stockBean.getSequenceNo());
        baseViewHolder.setText(R.id.tv_batchNo,stockBean.getBatchNo());
        baseViewHolder.setText(R.id.tv_num,stockBean.getStockNum());
    }
}